home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_30264.txt < prev    next >
Text File  |  1990-10-02  |  9KB  |  372 lines

  1. -- card: 30264 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 8259
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   send cardOpened to background
  9. end openCard
  10.  
  11. on move
  12.   global direction,demonDead,chase,blasting,eDoorOpen
  13.   if direction = "up" then
  14.     go card id 29230
  15.     exit move
  16.   end if
  17.   if direction = "west" then
  18.     if eDoorOpen
  19.     then
  20.     if demonDead then
  21.       go to card id 13815
  22.     else
  23.       go to card id 13242
  24.     end if
  25.   else
  26.     beep
  27.     put "The door is locked.  You can not go that way." into field 3
  28.   end if
  29.   exit move
  30. end if
  31. pass move
  32. end move
  33.  
  34.  
  35. on closeCard
  36.   set the cursor to 4
  37.   put "" into field 3
  38. end closeCard
  39.  
  40. on take
  41.   global object,carried
  42.   -- remember to update carried if you do not pass take
  43.   pass take
  44. end take
  45.  
  46. on drop
  47.   global object,dropRoom,carried
  48.   -- remember to update carried if you do not pass drop
  49.   pass drop
  50. end drop
  51.  
  52. on use
  53.   global object,carried,eDoorOpen
  54.   put last word of object into obj
  55.   delete first char of obj
  56.   delete last char of obj
  57.   if obj="key" then
  58.     put "The door leading east is now unlocked and you may pass through." into field 3
  59.     put true into eDoorOpen
  60.     exit use
  61.   end if
  62.   -- update carried if use results in loss of object
  63.   pass use
  64. end use
  65.  
  66.  
  67.  
  68.  
  69.  
  70. -- part 16 (button)
  71. -- low flags: 80
  72. -- high flags: 2000
  73. -- rect: left=122 top=230 right=266 bottom=156
  74. -- title width / last selected line: 0
  75. -- icon id / first selected line: 9301 / 9301
  76. -- text alignment: 1
  77. -- font id: 0
  78. -- text size: 12
  79. -- style flags: 0
  80. -- line height: 16
  81. -- part name: knife
  82. ----- HyperTalk script -----
  83. on mouseUp
  84.   global takeFlag,examFlag,object,cardID
  85.   put the name of the target into object
  86.   if takeFlag = true
  87.   then send take to card id cardID
  88. else put "a knife" into field 3
  89. put false into examFlag
  90. end mouseUp
  91.  
  92.  
  93.  
  94. -- part 17 (button)
  95. -- low flags: 80
  96. -- high flags: 2000
  97. -- rect: left=41 top=225 right=261 bottom=75
  98. -- title width / last selected line: 0
  99. -- icon id / first selected line: 1015 / 1015
  100. -- text alignment: 1
  101. -- font id: 0
  102. -- text size: 12
  103. -- style flags: 0
  104. -- line height: 16
  105. -- part name: nodule
  106. ----- HyperTalk script -----
  107. on mouseUp
  108.   global takeFlag,examFlag,object,cardID
  109.   put the name of the target into object
  110.   if takeFlag = true
  111.   then send take to card id cardID
  112. else put "a silicon sphere" into field 3
  113. put false into examFlag
  114. end mouseUp
  115.  
  116.  
  117.  
  118. -- part 18 (button)
  119. -- low flags: 80
  120. -- high flags: 2000
  121. -- rect: left=191 top=216 right=252 bottom=225
  122. -- title width / last selected line: 0
  123. -- icon id / first selected line: 14953 / 14953
  124. -- text alignment: 1
  125. -- font id: 0
  126. -- text size: 12
  127. -- style flags: 0
  128. -- line height: 16
  129. -- part name: ladder
  130. ----- HyperTalk script -----
  131. on mouseUp
  132.   global takeFlag,examFlag,object,cardID
  133.   put the name of the target into object
  134.   if takeFlag = true
  135.   then send take to card id cardID
  136. else put "a rope ladder" into field 3
  137. put false into examFlag
  138. end mouseUp
  139.  
  140.  
  141.  
  142. -- part 19 (button)
  143. -- low flags: 80
  144. -- high flags: 2000
  145. -- rect: left=55 top=153 right=189 bottom=89
  146. -- title width / last selected line: 0
  147. -- icon id / first selected line: 1019 / 1019
  148. -- text alignment: 1
  149. -- font id: 0
  150. -- text size: 12
  151. -- style flags: 0
  152. -- line height: 16
  153. -- part name: bomb
  154. ----- HyperTalk script -----
  155. on mouseUp
  156.   global takeFlag,examFlag,object,cardID
  157.   put the name of the target into object
  158.   if takeFlag = true
  159.   then send take to card id cardID
  160. else put "a time bomb." into field 3
  161. put false into examFlag
  162. end mouseUp
  163.  
  164.  
  165.  
  166. -- part 20 (button)
  167. -- low flags: 80
  168. -- high flags: 2000
  169. -- rect: left=20 top=187 right=223 bottom=54
  170. -- title width / last selected line: 0
  171. -- icon id / first selected line: 24317 / 24317
  172. -- text alignment: 1
  173. -- font id: 0
  174. -- text size: 12
  175. -- style flags: 0
  176. -- line height: 16
  177. -- part name: key
  178. ----- HyperTalk script -----
  179. on mouseUp
  180.   global takeFlag,examFlag,object,cardID
  181.   put the name of the target into object
  182.   if takeFlag = true
  183.   then send take to card id cardID
  184. else put "a key" into field 3
  185. put false into examFlag
  186. end mouseUp
  187.  
  188.  
  189.  
  190. -- part 21 (button)
  191. -- low flags: 80
  192. -- high flags: 2000
  193. -- rect: left=185 top=125 right=161 bottom=219
  194. -- title width / last selected line: 0
  195. -- icon id / first selected line: 7012 / 7012
  196. -- text alignment: 1
  197. -- font id: 0
  198. -- text size: 12
  199. -- style flags: 0
  200. -- line height: 16
  201. -- part name: gem
  202. ----- HyperTalk script -----
  203. on mouseUp
  204.   global takeFlag,examFlag,object,cardID
  205.   put the name of the target into object
  206.   if takeFlag = true
  207.   then send take to card id cardID
  208. else put "a glowing gem" into field 3
  209. put false into examFlag
  210. end mouseUp
  211.  
  212.  
  213.  
  214. -- part 22 (button)
  215. -- low flags: 80
  216. -- high flags: 2000
  217. -- rect: left=6 top=224 right=260 bottom=40
  218. -- title width / last selected line: 0
  219. -- icon id / first selected line: 23078 / 23078
  220. -- text alignment: 1
  221. -- font id: 0
  222. -- text size: 12
  223. -- style flags: 0
  224. -- line height: 16
  225. -- part name: orb
  226. ----- HyperTalk script -----
  227. on mouseUp
  228.   global takeFlag,examFlag,object,cardID
  229.   put the name of the target into object
  230.   if takeFlag = true
  231.   then send take to card id cardID
  232. else put "a crystal orb" into field 3
  233. put false into examFlag
  234. end mouseUp
  235.  
  236.  
  237.  
  238. -- part 33 (button)
  239. -- low flags: 00
  240. -- high flags: 0000
  241. -- rect: left=93 top=0 right=20 bottom=159
  242. -- title width / last selected line: 0
  243. -- icon id / first selected line: 0 / 0
  244. -- text alignment: 1
  245. -- font id: 0
  246. -- text size: 12
  247. -- style flags: 0
  248. -- line height: 16
  249. -- part name: 
  250. ----- HyperTalk script -----
  251. on mouseUp
  252.   global examFlag,direction,cardID
  253.   if examFlag then
  254.     put "a shaft leading up" into field 3
  255.     put false into examFlag
  256.   else
  257.     put false into takeFlag
  258.     put "up" into direction
  259.     send move to card id cardID
  260.   end if
  261. end mouseUp
  262.  
  263.  
  264.  
  265. -- part 34 (button)
  266. -- low flags: 00
  267. -- high flags: 0000
  268. -- rect: left=11 top=93 right=187 bottom=47
  269. -- title width / last selected line: 0
  270. -- icon id / first selected line: 0 / 0
  271. -- text alignment: 1
  272. -- font id: 0
  273. -- text size: 12
  274. -- style flags: 0
  275. -- line height: 16
  276. -- part name: 
  277. ----- HyperTalk script -----
  278. on mouseUp
  279.   global examFlag,direction,cardID,eDoorOpen,demonDead,takeFlag
  280.   if examFlag then
  281.     put "a barred door leading west." into field 3
  282.     if eDoorOpen
  283.     then put "  The door is unlocked!" after field 3
  284.   else put "  The door is locked!" after field 3
  285.   if demonDead=false then
  286.     put "  Peering through the bars you can see the orb of power " after field 3
  287.     put "in the dimly lit room beyond!" after field 3
  288.   end if
  289.   put false into examFlag
  290. else
  291.   if takeFlag then
  292.     put "You can't take the door." into field 3
  293.     put false into takeFlag
  294.   else
  295.     put "west" into direction
  296.     send move to card id cardID
  297.   end if
  298. end if
  299. end mouseUp
  300.  
  301.  
  302.  
  303. -- part 36 (button)
  304. -- low flags: 00
  305. -- high flags: 0000
  306. -- rect: left=113 top=20 right=130 bottom=146
  307. -- title width / last selected line: 0
  308. -- icon id / first selected line: 0 / 0
  309. -- text alignment: 1
  310. -- font id: 0
  311. -- text size: 12
  312. -- style flags: 0
  313. -- line height: 16
  314. -- part name: 
  315. ----- HyperTalk script -----
  316. on mouseUp
  317.   global examFlag,takeFlag,direction,cardID
  318.   if takeFlag then
  319.     put "You can't take the ladder -- it is attached at the top." into field 3
  320.     put false into takeFlag
  321.     exit mouseUp
  322.   end if
  323.   if examFlag then
  324.     put "A rope ladder leading into the shaft above." into field 3
  325.     put false into examFlag
  326.     exit mouseUp
  327.   end if
  328.   put "up" into direction
  329.   send move to card id cardID
  330. end mouseUp
  331.  
  332.  
  333.  
  334. -- part 43 (button)
  335. -- low flags: 00
  336. -- high flags: 0000
  337. -- rect: left=101 top=174 right=218 bottom=180
  338. -- title width / last selected line: 0
  339. -- icon id / first selected line: 0 / 0
  340. -- text alignment: 1
  341. -- font id: 0
  342. -- text size: 12
  343. -- style flags: 0
  344. -- line height: 16
  345. -- part name: 
  346. ----- HyperTalk script -----
  347. on mouseUp
  348.   global examFlag,takeFlag,direction,cardID
  349.   if takeFlag then
  350.     put "Look, I don't want to get gross here, but the body is badly decayed.  You really don't want it." into field 3
  351.     put false into takeFlag
  352.   else
  353.     put "A body.  Quite dead." into field 3
  354.     put false into examFlag
  355.   end if
  356. end mouseUp
  357.  
  358.  
  359.  
  360. -- part contents for background part 25
  361. ----- text -----
  362. Round Room
  363. (looking north)
  364.  
  365. -- part contents for background part 24
  366. ----- text -----
  367. You are in a round room.  There is a doorway to the west with a door made of massive iron bars.  There is a hole in the ceiling.  A rope ladder hangs down from the opening.  In the center of the floor is the body of an unsuccessful adventurer who appears to have broken his neck.  It looks like it has been there quite some time (yeech).
  368.  
  369.  
  370. -- part contents for background part 36
  371. ----- text -----
  372. 1